package com.mr.utils;

import com.b2c.common.utils.PageResult;
import com.mr.pojo.Goods;
import com.mr.service.pojo.BrandEntity;
import com.mr.service.pojo.CategoryEntity;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;
import java.util.Map;

/**
 * @ClassName SearchResult
 * @Description: TODO
 * @Author kun
 * @Date 2020/8/12
 * @Version V1.0
 **/
@Data
@NoArgsConstructor
public class SearchResult extends PageResult<Goods>{

    private List<CategoryEntity> categoryList;// 分类过滤条件

    private List<BrandEntity> brandList; // 品牌过滤条件

    private List<Map<String,Object>> specMap; // 规格参数过滤条件

    public SearchResult(Long total, Long totalPage, List<Goods> items, List<CategoryEntity> categoryList, List<BrandEntity> brandList
            ,List<Map<String,Object>> specMap
    ) {
        super(total, totalPage, items);
        this.categoryList = categoryList;
        this.brandList = brandList;
        this.specMap = specMap;
    }
}
